package com.slm.mylibrary.base;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import javax.inject.Inject;

import dagger.android.support.AndroidSupportInjection;

/**
 * @ProjectName: My Application
 * @Package: com.slm.mylibrary.base
 * @ClassName: BaseFragment
 * @Description: java类作用描述
 * @Author: 王丹丹
 * @CreateDate: 2020/6/2 23:01
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/6/2 23:01
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public abstract class BaseFragment<VM extends BaseViewModel> extends Fragment {
    @Inject
    protected VM mViewModel;


    @Override
    public void onAttach(@NonNull Context context) {
        AndroidSupportInjection.inject(this);
        super.onAttach(context);

    }


}
